package org.dromara.apartment.domain.bo;

import org.dromara.apartment.domain.ViewAppointment;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 预约看房信息业务对象 view_appointment
 *
 * @author CKJ
 * @date 2025-06-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ViewAppointment.class, reverseConvertGenerate = false)
public class ViewAppointmentBo extends BaseEntity {

    /**
     * 预约id
     */
    @NotNull(message = "预约id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 用户手机号码
     */
    private String phone;

    /**
     * 公寓ID
     */
    private Long apartmentId;

    /**
     * 房间ID
     */
    private Long roomId;

    /**
     * 预约时间
     */
    private Date appointmentTime;

    /**
     * 备注信息
     */
    private String additionalInfo;

    /**
     * 预约状态（1:待看房，2:已取消，3已看房）
     */
    private Integer appointmentStatus;


}
